import re

class ReRule(object):
    # 手机号验证
    def is_valid_phone_number(self,phone):
        pattern = r'^1[3-9]\d{9}$'  # 中国大陆手机号码格式
        return re.match(pattern, phone) is not None

    # 邮箱格式验证
    def is_valid_email(self,email):
        # 正则表达式
        pattern = r'^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'
        return re.match(pattern, email) is not None

re_rule = ReRule()
re_rule.is_valid_phone_number("111")